package com.weixing.mall.provider.model.enums;

import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * @Author: kfc
 * @Description: 用户能够看到的订单状态<br />
 * Date:Create in 2019/9/10 14:37
 * @Modified By:
 */

@NoArgsConstructor
public enum OrderFrontStateEnum implements IBaseEnum<Integer> {
    WAIT_PAY(1, "待付款"),
    CANCELD(2, "已取消"),
    WAIT_SHIP(3, "待发货"),
    WAIT_RECEIVE(4, "待收货"),
    FINISHED(5, "已完成"),
    AFTER_SALE(6, "退款/售后"),
    DELETED(7, "已删除"),
    ALL(0, "全部");
    private int value;
    private String desp;

    OrderFrontStateEnum(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
